package defaultstatic;

import java.util.function.Supplier;

/**
 * interface now allow static methods
 * 接口允许静态方法
 * @author kxd
 */
public interface DefaultableFactory {
	/**
	 * create
	 * @return
	 */
    static Defaultable create(Supplier<Defaultable> supplier) {
        return supplier.get();
    }
}
